      SUBROUTINE SETUP
      RETURN
      END
C   HS55REG
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS55REG HS55-REDUNDANT EQUATIONS REMOVED'/
      DATA (X(I),I=1,3)/1.0D0,2.D0,0.D0/
      DATA N/3/ , NH/2/ , NG/4/
      DATA DEL0/1.00D0/ ,TAU0/1.00D0/ ,TAU/.1D0/
      DATA (GUNIT(1,J),J=3,6)/4*1/,(GUNIT(3,I),I=3,6)/3*1,1*-1/,
     F     (GUNIT(2,I),I=3,6)/1,2,3,1/
     F     ,((GUNIT(I,J),I=1,3),J=0,2)/-1,0,0,-1,0,0,-1,0,0/
      END
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION FX,X(NX)
      ICF=ICF+1
      FX=  X(1)-2.D0*X(2)+DEXP(X(1)*(1.D0-X(1)))+8.D0
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)= 1. D0+DEXP(X(1)*(1.D0-X(1)))*(1.D0-2.D0*X(1))
      GRADF(2)=-2. D0
      GRADF(3)= 0.D0
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION HXI,X(NX),B(3,2),RS(2),S
      SAVE B,RS
      DATA B/1.D0,-3.D0,0.D0,3*1.D0/
      DATA RS/-4.D0,3.D0/
      CRES(I)=CRES(I)+1
      S=0.D0
      DO      100       J=1,3
      S=S+B(J,I)*X(J)
  100 CONTINUE
      HXI=S-RS(I)
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION X(NX),GRADHI(NX),B(3,2)
      SAVE B
      DATA B/1.D0,-3.D0,0.D0,3*1.D0/
      CGRES(I)=CGRES(I)+1
      DO      100      J=1,3
      GRADHI(J)=B(J,I)
  100 CONTINUE
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION GXI,X(NX)
      IF ( GUNIT(1,I+NH) .EQ. -1 ) CRES(I+NH)=CRES(I+NH)+1
      IF(I.GT.3)      GOTO 100
      GXI=X(I)
      RETURN
  100 CONTINUE
      GXI= 1.D0- X(1)
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
       DO     100      J=1,3
       GRADGI(J)=0.D0
  100  CONTINUE
       IF(I.GT.3)     GOTO 200
       GRADGI(I)=1.D0
       RETURN
  200  CONTINUE
       GRADGI(1)=-1.D0
      RETURN
      END


